package edu.ccut.saturn.workflow.rollbackModule.code;

import java.sql.Connection;
import java.util.List;

import edu.ccut.saturn.component.DefaultComponent;
import edu.ccut.saturn.component.IParameterContext;

public class GetNextActInstId extends DefaultComponent {
	@Override
	public void execute(IParameterContext parameterContext) throws Exception {
		String actInstId = (String) parameterContext.getParameterValue(0);
		Connection conn = parameterContext.getConnection();
		List<Object> list = RollbackUtil.getActInstIdList(actInstId, conn);
		parameterContext.setParameter(1, list);
	}
}